﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Test
{
    public class threadtest
    {
        [ThreadStatic]
        public static string rslt = string.Empty;

        public static void func(string id)
        {
            Console.WriteLine(id + "线程开始" + DateTime.Now.ToString("HHmmss"));
            rslt = id + "a";
            Thread.Sleep(2000);
            rslt = id + "b";
            Console.WriteLine(id + "线程结束" + DateTime.Now.ToString("HHmmss"));
        }
    }
}
